package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.RoleButton;
import com.antdesignbackend.backend.entity.entityVo.RoleButtonVo;
import com.antdesignbackend.backend.mapper.RoleButtonMapper;
import com.antdesignbackend.backend.service.RoleButtonService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleButtonServiceImpl extends ServiceImpl<RoleButtonMapper, RoleButton> implements RoleButtonService {
    @Autowired
    RoleButtonMapper roleButtonMapper;

    @Override
    public List<RoleButtonVo> selectRoleButtonList(QueryWrapper<RoleButtonVo> queryWrapper, Page<RoleButtonVo> page) {
        return roleButtonMapper.selectRoleButtonList(queryWrapper, page);
    }

    @Override
    public Integer count(QueryWrapper<RoleButtonVo> queryWrapper) {
        return roleButtonMapper.count(queryWrapper);
    }
}
